package cn.edu.tju.elm.dto;

import jakarta.validation.constraints.DecimalMin;

import java.math.BigDecimal;

/**
 * ClassName: FoodUpdateDTO
 * Package: cn.edu.tju.elm.dto
 * Description: 商品更新DTO
 *
 * @Author Niu Wenhang
 * @Create 2025/9/20 12:30
 * @Version 1.0
 */
public class FoodUpdateDTO {
    private String foodName;
    
    private String foodExplain;
    
    private String foodImg;
    
    @DecimalMin(value = "0.0", message = "商品价格必须大于等于0")
    private BigDecimal foodPrice;
    
    private Long businessId;
    
    private String remarks;
    
    private Boolean onSale;
    
    private Boolean deleted;

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getFoodExplain() {
        return foodExplain;
    }

    public void setFoodExplain(String foodExplain) {
        this.foodExplain = foodExplain;
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg;
    }

    public BigDecimal getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(BigDecimal foodPrice) {
        this.foodPrice = foodPrice;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Boolean getOnSale() {
        return onSale;
    }

    public void setOnSale(Boolean onSale) {
        this.onSale = onSale;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}
